package com.example.demo.entity.DTO;

import com.example.demo.AppUtil.ImgJsonSerializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/*
 * @Author:大力王
 * @Date:2024/6/3-03-13:51
 * 开始了
 */
@Data
@ApiModel(value = "首页轮播图的表")
public class IndexImgDto {

    /**
     * 图片
     */
    @JsonSerialize(using = ImgJsonSerializer.class)
    @ApiModelProperty("图片Url,required = true")
    private String imgUrl;

    /**
     * 顺序
     */
    @ApiModelProperty("图片顺序, required = true")
    private Integer seq;

    /**
     * 上传时间
     */
    @ApiModelProperty("上传时间 , required = true")
    private Date uploadTime;

    /**
     * 类型
     */
    @ApiModelProperty( "类型, required = true")
    private int type;

    /**
     * 关联id
     */
    @ApiModelProperty( "关联id , required = true")
    private Long relation;
}
